<?php
class settingController extends Controller
{
    function showIndex()
    {
        $this->putIntoPage("dasai", $this->modules->Vote->load("1"));
        $this->putIntoPage("about", $this->modules->Configs->load("about"));
        $this->putIntoPage("contact", $this->modules->Configs->load("contact"));
        $this->render("Setting");
    }

    function saveConfig()
    {
        $this->modules->Configs->update($this->_post);
        $this->showIndex();
    }

    function saveJj()
    {
        $this->modules->Vote->update($this->_post);
        $this->showIndex();
    }

}

?>